package com.wk1un2.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wk1un2.entity.ProductPict;
import com.wk1un2.mapper.ProductPictMapper;
import com.wk1un2.service.ProductPictService;

/**
 * 业务接口的实现类
 * 
 * @author Administrator
 *
 */
@Service // 扫描
public class ProductPictServiceImpl implements ProductPictService {

	@Autowired
	private ProductPictMapper ProductPictMapper;// 自动注入mapper

	@Override
	public List<ProductPict> getAll(int page, int limit, String p_name) {
		// TODO Auto-generated method stub
		return ProductPictMapper.getAll(page, limit, p_name);
	}

	@Override
	public Integer count() {
		// TODO Auto-generated method stub
		return ProductPictMapper.count();
	}

	@Override
	public Integer add(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return ProductPictMapper.add(map);
	}

	@Override
	public Integer update(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return ProductPictMapper.update(map);
	}

	@Override
	public Integer delete(int c_id) {
		// TODO Auto-generated method stub
		return ProductPictMapper.delete(c_id);
	}

	@Override
	public List<Map<String, Object>> getPict(Integer p_id, Integer pp_type) {
		// TODO Auto-generated method stub
		return ProductPictMapper.getPict(p_id,pp_type);
	}

}
